<%-- 
    Document   : ActualizarCarrera
    Created on : 30-dic-2011, 2:51:00
    Author     : Hades
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <title>Actualizacion</title>
	<script language="JavaScript" type="text/javascript" src="js/jquery-1.7.1.js">
        </script>
        <script language="JavaScript" type="text/javascript" src="js/jquery-validation-1.9.0/jquery.validate.js">
        </script>
        <script language="JavaScript" type="text/javascript" src="js/jquery.maskedinput-1.3.js">
        </script>
        <script>
         $(document).ready(function(){
         $("#formulario").validate(
          {
              rules:{idCarrera:{requiere:true},descripcion:{requiere:true}},
              messages:{idCarrera:"Ingrese numero de Control",descripcion:"Ingrese su nombre"}
          }
        )
         });
         </script>
         <!-- 
         Script que utiliza mascaras de JQuery para validar
         -->
        <script type="text/javascript"> 
        jQuery(function($){ 
        $("#idCarrera").mask("999999999"); 
        $("#descripcion").mask("a?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); 
         
        }); 
        </script>

    </head>
    <body>
        <form id="formulario" name="formulario" method="post" action="UpdateCarreraServlet">
        <table align="center">
            <tr>
                <td colspan="2" align="center"><h1>Actualizar Datos de Carrera<h1></td>
            </tr>
            <tr>
                <td>ID de Carrera</td>
                <td><input type="text" id="idCarrera" name="idCarrera" class="required"/></td>
            </tr>
            <tr>
                <td>Descripcion</td>
                <td><input type="text" id="descripcion" name="descripcion" class="required"/></td>
            </tr>
            <tr>
                 <td colspan="2" align="center"><input type="submit" value="enviar" /></td>
             </tr>
        </table>
         </form>
        
    </body>
</html>
